package com.web.exiaodao.business.entity;

import com.web.exiaodao.business.constant.JConstant;
import com.web.webstart.base.entity.BaseEntity;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author eason
 * @ClassName: fanliOrder
 * @Description: 返利-订单表定义表
 * @date 2017-02-13 14:46:51
 */
@Entity
@Table(name = "tb_xa_fanliorder")
@ApiModel(value = "返利-订单表定义表")
public class FanliOrder extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商家编号,商家编号")
    private Long busId;
    @ApiModelProperty(value = "下单时间,下单时间")
    private String creatOrderTime;
    @ApiModelProperty(value = "订单金额,订单金额")
    private String orderMoney;
    @ApiModelProperty(value = "订单号,订单号")
    private String orderNo;
    @ApiModelProperty(value = "商品名称,商品名称")
    private String shopName;
    @ApiModelProperty(value = "商品简介,商品简介")
    private String shopBrief;
    @ApiModelProperty(value = "商品图片,商品图片")
    private String shopImg;
    @ApiModelProperty(value = "预计返利金额,预计返利金额")
    private Double fanliMoney;
    @ApiModelProperty(value = "预计返利日期(yyyy-MM-dd),预计返利日期")
    private String faliTime;
    @ApiModelProperty(value = "用户ID,用户ID，外键，关联用户表")
    private Long userId;
    @ApiModelProperty(value = "平台预计返利金额,平台预计返利金额")
    private Double platformFanliMoney;

    /**
     * @see JConstant.FanliOrderStatus
     */
    @ApiModelProperty(value = "返利订单状态,返利订单状态，0：即将可以（即将可以用返利）1：已经返利 2：无返利 （已经返利要2个月）")
    private String faliOrderStatus;


    public void setBusId(Long busId) {
        this.busId = busId;
    }

    @Column(nullable = true, length = 20)
    public Long getBusId() {
        return busId;
    }

    public void setCreatOrderTime(String creatOrderTime) {
        this.creatOrderTime = creatOrderTime;
    }

    @Column(nullable = true, length = 255)
    public String getCreatOrderTime() {
        return creatOrderTime;
    }

    public void setOrderMoney(String orderMoney) {
        this.orderMoney = orderMoney;
    }

    @Column(nullable = true, length = 255)
    public String getOrderMoney() {
        return orderMoney;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    @Column(nullable = true, length = 255)
    public String getOrderNo() {
        return orderNo;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    @Column(nullable = true, length = 255)
    public String getShopName() {
        return shopName;
    }

    public void setShopBrief(String shopBrief) {
        this.shopBrief = shopBrief;
    }

    @Column(nullable = true, length = 6000)
    public String getShopBrief() {
        return shopBrief;
    }

    public void setShopImg(String shopImg) {
        this.shopImg = shopImg;
    }

    @Column(nullable = true, length = 500)
    public String getShopImg() {
        return shopImg;
    }

    public void setFanliMoney(Double fanliMoney) {
        this.fanliMoney = fanliMoney;
    }

    @Column(nullable = true, length = 255)
    public Double getFanliMoney() {
        return fanliMoney;
    }

    public void setFaliTime(String faliTime) {
        this.faliTime = faliTime;
    }

    @Column(nullable = true, length = 255)
    public String getFaliTime() {
        return faliTime;
    }

    public void setFaliOrderStatus(String faliOrderStatus) {
        this.faliOrderStatus = faliOrderStatus;
    }

    @Column(nullable = true, length = 50)
    public String getFaliOrderStatus() {
        return faliOrderStatus;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Column(nullable = true, length = 20)
    public Long getUserId() {
        return userId;
    }

    public void setPlatformFanliMoney(Double platformFanliMoney) {
        this.platformFanliMoney = platformFanliMoney;
    }

    @Column(nullable = true, length = 255)
    public Double getPlatformFanliMoney() {
        return platformFanliMoney;
    }

    @Override
    public String toString() {
        return "FanliOrder[busId=" + busId + ", creatOrderTime=" + creatOrderTime
                + ", orderMoney=" + orderMoney + ", orderNo=" + orderNo + ", shopName=" + shopName
                + ", fanliMoney=" + fanliMoney + ", faliTime=" + faliTime + ", faliOrderStatus=" + faliOrderStatus
                + "]";
    }
}
